<?php 
/* SVN FILE: $Id$ */
/* Contacto Test cases generated on: 2009-12-19 22:12:55 : 1261277095*/
App::import('Model', 'Contacto');

class ContactoTestCase extends CakeTestCase {
	var $Contacto = null;
	var $fixtures = array('app.contacto', 'app.persona');

	function startTest() {
		$this->Contacto =& ClassRegistry::init('Contacto');
	}

	function testContactoInstance() {
		$this->assertTrue(is_a($this->Contacto, 'Contacto'));
	}

	function testContactoFind() {
		$this->Contacto->recursive = -1;
		$results = $this->Contacto->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Contacto' => array(
			'id'  => 1,
			'contacto'  => 'Lorem ipsum dolor sit amet',
			'contacto_tipo'  => 1,
			'vigencia'  => 1,
			'fecha_modificacion'  => '2009-12-19 22:44:54',
			'usuario'  => 1,
			'persona_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>